package com.demo.fullink.service;

import com.demo.fulllink.module.po.ProductPO;
import com.demo.fulllink.module.vo.ResponseVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.io.Serializable;

@FeignClient(name = "storage-service", path = "/storage/product", contextId = "product")
public interface StorageProductService {
    
    @RequestMapping("/findByID/{productid}")
    public ProductPO findByID(@PathVariable("productid") Serializable productid);
    
    @RequestMapping("/cacheProductStock/{productid}")
    public ResponseVO cacheProductStock(@PathVariable("productid") Serializable productid);
    
}
